package builder.improve;

/**
 * @Author liangliangzhao
 * @data 2023/3/21 20:27
 */

public class Client {
    public static void main(String[] args) {
        //盖普通房子
        CommonHouse commonHouse = new CommonHouse();
        //准备创建房子的指挥者
        HouseDirector director = new HouseDirector(commonHouse);
        //完成盖房子
        House house = director.constructHouse();
        System.out.println("-----------------------");
        //盖高楼房子
        HighBuilder builder = new HighBuilder();
        //准备创建房子的指挥者
        director.setHouseBuilder(builder);
        //完成盖房子
        director.constructHouse();
    }
}
